package com.mvc.dao.impl;

import com.mvc.dao.TypeDao;
import com.mvc.entity.Type;

/**
 * @author wzm
 * @create 2023-04-12 15:17
 */
public class TypeDaoImpl extends BaseDao implements TypeDao {
    @Override
    public Type getTypeById(Type type) {
        String sql = "select * from type where typeid = ?";
        return selectForOne(Type.class,sql,type.getTypeid());
    }
}
